package sy2;

public class Car implements Price{
    private String brand;
    private String number;
    private String type;

    public Car(String brand, String number, String type) {
        this.brand = brand;
        this.number = number;
        this.type = type;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    public int calRent(int day) {
        return 900*day;
    }
}
